package single_game.logic.race_simulator.race_team.rider_actions;

import java.util.Random;

import single_game.logic.race_simulator.race_team.RaceRider;
import main.CyclingManager;

public class SlowDown {
	
	private static Random random = new Random();
	
	public static void simulateRiderAction(RaceRider rider) {			
		if (rider.getEnergy() > 10.0) {
			rider.setAction("Maintain Position");
			rider.setPower(65);
			System.out.println("Slow -> Maintain "+CyclingManager.getInstance().cyclists.get(rider.getCyclistId()).getSurname()+" "+rider.getRiderRole());
		}	
	}
}
